/**
 * Created by lenovo on 2016/7/24.
 */
app.filter('toDecimal2',function(){
    return function (str){
        var f = parseFloat(str);
        if (isNaN(f)) {
            return false;
        }
        var f = Math.round(str*100)/100;
        var s = f.toString();
        var rs = s.indexOf('.');
        if (rs < 0) {
            rs = s.length;
            s += '.';
        }
        while (s.length <= rs + 2) {
            s += '0';
        }
        return s;
    }
})